//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
     url:""
  },
  //事件处理函数
  bindViewTap: function() {
    wx.navigateTo({
      url: '../logs/logs'
    })
  },
  onLoad: function () {
    var that = this;
    wx.showLoading({
      title: '加载中',
    });
    wx.getStorage({
      key: 'urlnewlist',
      success(res) {
        var newdata = res.data;
        var x = newdata.replace(/^http/, "https")
        that.setData(
          {
            url: x
          }
        )
      }
    })
    setTimeout(
      () => {
        wx.hideLoading();
      }, 3000
    )  
  }
})
